package com.demo.service;

import com.demo.common.base.ResultModel;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description: LoginService
 * @Author: ChenXueLi
 * @Date: 2018-10-02 15:06
 */
public interface LoginService {

    /**
     * 用户登录
     * @param account
     * @param password
     * @param resultModel
     * @param request
     * @param response
     * @return
     * @throws Exception
     */
    ResultModel login(String account, String password, ResultModel resultModel, HttpServletRequest request, HttpServletResponse response) throws Exception;

    /**
     * 用户登出
     * @param resultModel
     * @param request
     * @param response
     * @return
     * @throws Exception
     */
    ResultModel loginOut(ResultModel resultModel, HttpServletRequest request, HttpServletResponse response) throws Exception;

}
